.class Lcom/brixd/niceapp/community/activity/SelectTagActivity$1;
.super Ljava/lang/Object;
.source "SelectTagActivity.java"

# interfaces
.implements Lretrofit/Callback;


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lcom/brixd/niceapp/community/activity/SelectTagActivity;->initData()V
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation

.annotation system Ldalvik/annotation/Signature;
    value = {
        "Ljava/lang/Object;",
        "Lretrofit/Callback",
        "<",
        "Lorg/json/JSONObject;",
        ">;"
    }
.end annotation


# instance fields
.field final synthetic this$0:Lcom/brixd/niceapp/community/activity/SelectTagActivity;


# direct methods
.method constructor <init>(Lcom/brixd/niceapp/community/activity/SelectTagActivity;)V
    .registers 2
    .param p1, "this$0"    # Lcom/brixd/niceapp/community/activity/SelectTagActivity;

    .prologue
    .line 73
    iput-object p1, p0, Lcom/brixd/niceapp/community/activity/SelectTagActivity$1;->this$0:Lcom/brixd/niceapp/community/activity/SelectTagActivity;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public failure(Lretrofit/RetrofitError;)V
    .registers 3
    .param p1, "arg0"    # Lretrofit/RetrofitError;

    .prologue
    .line 94
    iget-object v0, p0, Lcom/brixd/niceapp/community/activity/SelectTagActivity$1;->this$0:Lcom/brixd/niceapp/community/activity/SelectTagActivity;

    # getter for: Lcom/brixd/niceapp/community/activity/SelectTagActivity;->mTags:Ljava/util/List;
    invoke-static {v0}, Lcom/brixd/niceapp/community/activity/SelectTagActivity;->access$000(Lcom/brixd/niceapp/community/activity/SelectTagActivity;)Ljava/util/List;

    move-result-object v0

    invoke-interface {v0}, Ljava/util/List;->size()I

    move-result v0

    if-gtz v0, :cond_12

    .line 95
    const v0, 0x7f0c00e0

    invoke-static {v0}, Lcom/brixd/niceapp/util/ToastUtils;->show(I)V

    .line 97
    :cond_12
    return-void
.end method

.method public bridge synthetic success(Ljava/lang/Object;Lretrofit/client/Response;)V
    .registers 3

    .prologue
    .line 73
    check-cast p1, Lorg/json/JSONObject;

    invoke-virtual {p0, p1, p2}, Lcom/brixd/niceapp/community/activity/SelectTagActivity$1;->success(Lorg/json/JSONObject;Lretrofit/client/Response;)V

    return-void
.end method

.method public success(Lorg/json/JSONObject;Lretrofit/client/Response;)V
    .registers 5
    .param p1, "arg0"    # Lorg/json/JSONObject;
    .param p2, "arg1"    # Lretrofit/client/Response;

    .prologue
    .line 77
    iget-object v0, p0, Lcom/brixd/niceapp/community/activity/SelectTagActivity$1;->this$0:Lcom/brixd/niceapp/community/activity/SelectTagActivity;

    # getter for: Lcom/brixd/niceapp/community/activity/SelectTagActivity;->mTags:Ljava/util/List;
    invoke-static {v0}, Lcom/brixd/niceapp/community/activity/SelectTagActivity;->access$000(Lcom/brixd/niceapp/community/activity/SelectTagActivity;)Ljava/util/List;

    move-result-object v0

    invoke-interface {v0}, Ljava/util/List;->size()I

    move-result v0

    if-gtz v0, :cond_29

    .line 78
    iget-object v0, p0, Lcom/brixd/niceapp/community/activity/SelectTagActivity$1;->this$0:Lcom/brixd/niceapp/community/activity/SelectTagActivity;

    const-string v1, "tags"

    invoke-virtual {p1, v1}, Lorg/json/JSONObject;->optJSONArray(Ljava/lang/String;)Lorg/json/JSONArray;

    move-result-object v1

    invoke-static {v1}, Lcom/brixd/niceapp/model/TagModel;->parseTagModels(Lorg/json/JSONArray;)Ljava/util/List;

    move-result-object v1

    # setter for: Lcom/brixd/niceapp/community/activity/SelectTagActivity;->mTags:Ljava/util/List;
    invoke-static {v0, v1}, Lcom/brixd/niceapp/community/activity/SelectTagActivity;->access$002(Lcom/brixd/niceapp/community/activity/SelectTagActivity;Ljava/util/List;)Ljava/util/List;

    .line 79
    iget-object v0, p0, Lcom/brixd/niceapp/community/activity/SelectTagActivity$1;->this$0:Lcom/brixd/niceapp/community/activity/SelectTagActivity;

    # getter for: Lcom/brixd/niceapp/community/activity/SelectTagActivity;->mHandler:Landroid/os/Handler;
    invoke-static {v0}, Lcom/brixd/niceapp/community/activity/SelectTagActivity;->access$300(Lcom/brixd/niceapp/community/activity/SelectTagActivity;)Landroid/os/Handler;

    move-result-object v0

    new-instance v1, Lcom/brixd/niceapp/community/activity/SelectTagActivity$1$1;

    invoke-direct {v1, p0}, Lcom/brixd/niceapp/community/activity/SelectTagActivity$1$1;-><init>(Lcom/brixd/niceapp/community/activity/SelectTagActivity$1;)V

    invoke-virtual {v0, v1}, Landroid/os/Handler;->post(Ljava/lang/Runnable;)Z

    .line 89
    :cond_29
    const-string v0, "tags"

    invoke-virtual {p1, v0}, Lorg/json/JSONObject;->optJSONArray(Ljava/lang/String;)Lorg/json/JSONArray;

    move-result-object v0

    invoke-virtual {v0}, Lorg/json/JSONArray;->toString()Ljava/lang/String;

    move-result-object v0

    invoke-static {v0}, Lcom/brixd/niceapp/util/LocalCacheUtils;->setLocalTagModels(Ljava/lang/String;)V

    .line 90
    return-void
.end method
